package com.hand.qiandu.service;

import com.hand.qiandu.domain.Role;
import com.hand.qiandu.domain.User;
import org.apache.ibatis.annotations.Param;


import java.util.List;
import java.util.Map;

/**
 * @author 24748  刘瑞锋
 * @date 2019/7/16
 */

public interface IUserService {
    List<User> queryAllUser();
    User queryUser(@Param("id") Long id);
    List<Role> queryUserRole(@Param("id")Long id);
    Long insertUser(User user);
    void updateUser(@Param("user") User user);
    void deleteUser(@Param("id")Long id);
    List<User> queryUserByIds(@Param("ids") List<Long> ids);

    List<Map<String,String>> queryUserPermission(long userId);
}
